home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / prog / aitools.zip / DOS.ESI < prev    next >
Text File  |  1986-08-02  |  18KB  |  687 lines

  1. goal is dos.command
  2. legalanswers are y n *
  3. answer is "Command format    " dos.command
  4.  
  5.  
  6.  
  7.  
  8. question device.names is
  9. "Do you want to determine specific device names reserved by DOS?        Y or N"
  10.  
  11. if device.names is y
  12. and keyboard.screen is y
  13. then dos.command is CON
  14.  
  15. question keyboard.screen is
  16. "DOS device name for console keyboard and screen?                       Y or N"
  17.  
  18. if device.names is y
  19. and first.port is y
  20. then dos.command is AUX  OR  COM1
  21.  
  22. question first.port is
  23. "DOS device name for first serial/parallel adapter port?                Y or N"
  24.  
  25. if device.names is y
  26. and second.port is y
  27. then dos.command is COM2
  28.  
  29. question second.port is
  30. "DOS device name for second serial/parallel adapter port?               Y or N"
  31.  
  32. if device.names is y
  33. and parallel.printer1 is y
  34. then dos.command is LPT1:  OR   PRN
  35.  
  36. question parallel.printer1 is
  37. "DOS device name for first parallel printer? (As output device only)    Y or N"
  38.  
  39. if device.names is y
  40. and parallel.printer2 is y
  41. then dos.command is LPT2:
  42.  
  43. question parallel.printer2 is
  44. "DOS device name for second parallel printer?                           Y or N"
  45.  
  46. if device.names is y
  47. and parallel.printer3 is y
  48. then dos.command is LPT3:
  49.  
  50. question parallel.printer3 is
  51. "DOS device name for third parallel printer?                            Y or N"
  52.  
  53. if device.names is y
  54. and nul is y
  55. then dos.command is NUL                     (See DOS Manual)
  56.  
  57. question nul is
  58. "Nonexistent (dummy) input/output device for testing applications?      Y or N"
  59.  
  60. if device.names is y
  61. and nul is n
  62. then dos.command is NO OTHER DEVICE NAMES RESERVED
  63.  
  64.  
  65.  
  66.  
  67. if hotkey is y
  68. and ctrl.break is y
  69. then dos.command is PRESS CTRL-C  OR  CTRL-BREAK
  70.  
  71. question hotkey is
  72. "Do you want to employ special DOS hotkey combinations?                 Y or N"
  73.  
  74. question ctrl.break is
  75. "Do you want to cancel any ongoing DOS operation?                       Y or N"
  76.  
  77. if hotkey is y
  78. and ctrl-s is y
  79. then dos.command is PRESS CTRL-S  OR  CTRL-NUM-LOCK
  80.  
  81. question ctrl-s is
  82. "Pause large amounts of output to screen from DIR or TYPE commands?     Y or N"
  83.  
  84. if hotkey is y
  85. and print.screen is y
  86. then dos.command is PRESS SHIFT-PRTSC
  87.  
  88. question print.screen is
  89. "Do you want to print a copy of the current screen contents?            Y or N"
  90.  
  91. if hotkey is y
  92. and typewrite.mode is y
  93. then dos.command is PRESS CTRL-PRTSC         (ON/OFF TOGGLE)
  94.  
  95. question typewrite.mode is
  96. "Print each character written to the screen? (Typewrite mode on/off)    Y or N"
  97.  
  98. if hotkey is y
  99. and ascii.input is y
  100. then dos.command is ALT-[INPUT ASCII NO. VIA NUMERIC KEYPAD]
  101.  
  102. question ascii.input is
  103. "Write a character to screen through input of its ASCII code?           Y or N"
  104.  
  105. if hotkey is y
  106. and ascii.input is n
  107. then dos.command is NO OTHER HOTKEY OPTIONS LISTED
  108.  
  109.  
  110.  
  111.  
  112. question directory is
  113. "Do you want a choice of ways to list the names of existing files?      Y or N"
  114.  
  115. if directory is y
  116. and paused is y
  117. then dos.command is DIR D: /P
  118.  
  119. question paused is
  120. "Pause each screenful of filenames, keystroke displays next screen?     Y or N"
  121.  
  122. if directory is y
  123. and wide is y
  124. then dos.command is DIR D: /W
  125.  
  126. question wide is
  127. "List filenames only in wide display format across width of screen?     Y or N"
  128.  
  129. if directory is y
  130. and selected.files is y
  131. then dos.command is DIR D:FILEMASK.EXT /P            (*? OK)
  132.  
  133. question selected.files is
  134. "List filenames matching a specific filemask using * and ? wildcards?   Y or N"
  135.  
  136. if directory is y
  137. and directory.sub is y
  138. then dos.command is DIR D:\PATH\*.* /P               (*? OK)
  139.  
  140. question directory.sub is
  141. "List all a single subdirectory's files one screenful at a time?        Y or N"
  142.  
  143. if directory is y
  144. and sorted is y
  145. then dos.command is DIR D: | SORT     (CTRL-S PAUSES OUTPUT)
  146.  
  147. question sorted is
  148. "Display filenames sorted in increasing order? (Ctrl-S pauses output)   Y or N"
  149.  
  150. if directory is y
  151. and sorted.file is y
  152. then dos.command is DIR D: | SORT > FILENAME.EXT
  153.  
  154. question sorted.file is
  155. "Sort in increasing order and route to file called FILENAME.EXT?        Y or N"
  156.  
  157. if directory is y
  158. and sorted.print is y
  159. then dos.command is DIR D: | SORT > LPT1:
  160.  
  161. question sorted.print is
  162. "Sort directory listing in increasing order and output via printer?     Y or N"
  163.  
  164. if directory is y
  165. and sorted.print is n
  166. then dos.command is NO OTHER DIR OPTIONS LISTED
  167.  
  168.  
  169.  
  170.  
  171. question interact is
  172. "Allow DOS commands to interact/communicate with each other?            Y or N"
  173.  
  174. if interact is y
  175. and input.output is y
  176. and standard.piping is y
  177. then dos.command is |               (Example: DIR D: | SORT)
  178.  
  179. question input.output is
  180. "Modify source of input and output to and from commands?                Y or N"
  181.  
  182. question standard.piping is
  183. "Pipe standard output of one DOS command into a second DOS command?     Y or N"
  184.  
  185. if interact is y
  186. and input.output is y
  187. and nonstandard.output is y
  188. then dos.command is >              (Example: DIR D: > LPT1:)
  189.  
  190. question nonstandard.output is
  191. "Route output of DOS command to file or device such as Line Printer 1?  Y or N"
  192.  
  193. if interact is y
  194. and input.output is y
  195. and nonstandard.input is y
  196. then dos.command is <               (Example: SORT < MYFILE)
  197.  
  198. question nonstandard.input is
  199. "Input data to a DOS command from a file, rather than from keyboard?    Y or N"
  200.  
  201. if interact is y
  202. and input.output is y
  203. and nonstandard.i/o is y
  204. then dos.command is SORT < FILE1.EXT > FILE2.EXT
  205.  
  206. question nonstandard.i/o is
  207. "Input data to DOS command from FILE1.EXT, output results to FILE2.EXT? Y or N"
  208.  
  209. if interact is y
  210. and input.output is y
  211. and nonstandard.i/o is n
  212. then dos.command is NO OTHER INPUT/OUTPUT OPTIONS LISTED
  213.  
  214.  
  215.  
  216.  
  217. if interact is y
  218. and filter is y
  219. and more.filter is y
  220. then dos.command is MORE          (Used With Other Commands)
  221.  
  222. question filter is
  223. "Do you want to select a filter to modify data prior to output?         Y or N"
  224.  
  225. question more.filter is
  226. "Do you want to present output of data paused after each screenful?     Y or N"
  227.  
  228. if interact is y
  229. and filter is y
  230. and sort.filter is y
  231. then dos.command is SORT[OPTIONS] (Used With Other Commands)
  232.  
  233. question sort.filter is
  234. "Do you want to present output sorted in increasing/decreasing order?   Y or N"
  235.  
  236. if interact is y
  237. and filter is y
  238. and find.filter is y
  239. then dos.command is FIND[OPTIONS] (Used With Other Commands)
  240.  
  241. question find.filter is
  242. "Output lines that contain/do-not-contain a specified character string? Y or N"
  243.  
  244. if interact is y
  245. and filter is y
  246. and find.filter is n
  247. then dos.command is NO OTHER FILTER OPTIONS LISTED
  248.  
  249.  
  250.  
  251.  
  252. if interact is y
  253. and batch is y
  254. then dos.command is (See Batch Files In DOS Manual)
  255.  
  256. question batch is
  257. "Create executable file (.BAT file) containing multiple DOS commands?   Y or N"
  258.  
  259. if interact is y
  260. and batch is n
  261. then dos.command is NO OTHER INTERACT OPTIONS LISTED
  262.  
  263.  
  264.  
  265.  
  266.  
  267. question files is
  268. "Do you want to perform operations on a file or group of files?         Y or N"
  269.  
  270. if files is y
  271. and dir is y
  272. then dos.command is DIR D:\PATH\FILEMASK.EXT /P      (*? OK)
  273.  
  274. question dir is
  275. "List all or a selected group of filenames one screenful at a time?     Y or N"
  276.  
  277. if files is y
  278. and type is y
  279. then dos.command is TYPE D:\PATH\FILENAME.EXT
  280.  
  281. question type is
  282. "Display the contents of a text file on the monitor? (CTRL-S pauses)    Y or N"
  283.  
  284. if files is y
  285. and print is y
  286. then dos.command is PRINT D:\PATH\FILEMASK.EXT       (*? OK)
  287.  
  288. question print is
  289. "Do you want to print a text file or a selected group of text files?    Y or N"
  290.  
  291. if files is y
  292. and attribute is y
  293. then dos.command is ATTRIB +R D:\PATH\FILEMASK.EXT   (*? OK)
  294.  
  295. question attribute is
  296. "Do you want to set a file or group of files as read-only?              Y or N"
  297.  
  298. if files is y
  299. and kill.attribute is y
  300. then dos.command is ATTRIB -R D:\PATH\FILEMASK.EXT   (*? OK)
  301.  
  302. question kill.attribute is
  303. "Do you want to cancel the read-only status of a file or files?         Y or N"
  304.  
  305. if files is y
  306. and rename is y
  307. then dos.command is REN D:\PATH\OLDMASK.EXT NEWMASK.EXT
  308.  
  309. question rename is
  310. "Do you want to rename a file or selected group of files?               Y or N"
  311.  
  312. if files is y
  313. and copy is y
  314. then dos.command is COPY D:\PATH\OLDMASK D:\PATH\NEWMASK
  315.  
  316. question copy is
  317. "Do you want to duplicate a file or selected group of files?            Y or N"
  318.  
  319. if files is y
  320. and compare is y
  321. then dos.command is COMP D:\PATH\FILE1.EXT D:\PATH\FILE2.EXT
  322.  
  323. question compare is
  324. "Compare the contents of FILE1.EXT with FILE2.EXT?                      Y or N"
  325.  
  326. if files is y
  327. and backup is y
  328. then dos.command is BACKUP X:\PATH\FILEMASK.EXT Y:   (*? OK)
  329.  
  330. question backup is
  331. "Do you want to backup drive X: files to another drive named Y:?        Y or N"
  332.  
  333. if files is y
  334. and restore is y
  335. then dos.command is RESTORE Y: X:\PATH\FILEMASK.EXT  (*? OK)
  336.  
  337. question restore is
  338. "Do you want to restore backup files from drive Y: to drive X:?         Y or N"
  339.  
  340. if files is y
  341. and recover is y
  342. then dos.command is RECOVER D:\PATH\FILENAME.EXT
  343.  
  344. question recover is
  345. "Do you want to recover a file that has a defective sector?             Y or N"
  346.  
  347. if files is y
  348. and delete is y
  349. then dos.command is DEL D:\PATH\FILEMASK.EXT         (*? OK)
  350.  
  351. question delete is
  352. "Do you want to delete or erase a file or selected group of files?      Y or N"
  353.  
  354.  
  355.  
  356.  
  357. if subdirectories is y
  358. and tree is y
  359. then dos.command is TREE D: | MORE
  360.  
  361. question subdirectories is
  362. "Do you want to perform operations on subdirectories?                   Y or N"
  363.  
  364. question tree is
  365. "Display a list of all subdirectories one screenful at a time?          Y or N"
  366.  
  367. if subdirectories is y
  368. and sub.files is y
  369. then dos.command is DIR D:\PATH\*.* /P               (*? OK)
  370.  
  371. question sub.files is
  372. "List all a single subdirectory's files one screenful at a time?        Y or N"
  373.  
  374. if subdirectories is y
  375. and create is y
  376. then dos.command is MKDIR D:\PATH
  377.  
  378. question create is
  379. "Do you want to create a completely new subdirectory?                   Y or N"
  380.  
  381. if subdirectories is y
  382. and change is y
  383. then dos.command is CHDIR D:\PATH
  384.  
  385. question change is
  386. "Do you want to place yourself within a different subdirectory?         Y or N"
  387.  
  388. if subdirectories is y
  389. and sub.copy is y
  390. then dos.command is COPY D:\PATH1\*.* D:\PATH2       (*? OK)
  391.  
  392. question sub.copy is
  393. "Do you want to copy all files from one subdirectory to another?        Y or N"
  394.  
  395. if subdirectories is y
  396. and sub.backup is y
  397. then dos.command is BACKUP X:\PATH\*.* Y:            (*? OK)
  398.  
  399. question sub.backup is
  400. "Backup all of a single drive X: subdirectory's files to drive Y:?      Y or N"
  401.  
  402. if subdirectories is y
  403. and sub.restore is y
  404. then dos.command is RESTORE Y: X:\PATH\*.*           (*? OK)
  405.  
  406. question sub.restore is
  407. "Restore backup files from drive Y: to a subdirectory on drive X:?      Y or N"
  408.  
  409. if subdirectories is y
  410. and remove is y
  411. then dos.command is RMDIR D:\PATH
  412.  
  413. question remove is
  414. "Do you want to delete an empty subdirectory?                           Y or N"
  415.  
  416.  
  417.  
  418.  
  419. question disk is
  420. "Do you want to perform operations on drives or complete disks?         Y or N"
  421.  
  422. if disk is y
  423. and default is y
  424. then dos.command is E:   (Prompt displays new default drive)
  425.  
  426. question default is
  427. "Change the default drive from current drive D: to drive E:?            Y or N"
  428.  
  429. if disk is y
  430. and hard.disk is y
  431. then dos.command is SYS C:     FOLLOWED BY     COPY A:*.* C:
  432.  
  433. question hard.disk is
  434. "Two steps to upgrade hard disk to new DOS version on default drive A:? Y or N"
  435.  
  436. if disk is y
  437. and new.disk is y
  438. and system.disk is y
  439. then dos.command is FORMAT D: /S
  440.  
  441. question new.disk is
  442. "Do you want to prepare or format a new disk for use?                   Y or N"
  443.  
  444. question system.disk is
  445. "Is the disk to be a bootable system disk? Y or N (N = non-bootable data disk)"
  446.  
  447. if disk is y
  448. and new.disk is y
  449. and system.disk is n
  450. then dos.command is FORMAT D:
  451.  
  452. if disk is y
  453. and volume is y
  454. then dos.command is VOL D:
  455.  
  456. question volume is
  457. "Do you want to display the volume label of a specified disk?           Y or N"
  458.  
  459. if disk is y
  460. and label is y
  461. then dos.command is LABEL D:[11-CHARACTER-LABEL]
  462.  
  463. question label is
  464. "Do you want to create or change the volume label of a specified disk?  Y or N"
  465.  
  466. if disk is y
  467. and disk.dir is y
  468. then dos.command is DIR D:*.* /P                     (*? OK)
  469.  
  470. question disk.dir is
  471. "List all files on a specific disk one screenful at a time?             Y or N"
  472.  
  473. if disk is y
  474. and diskcopy is y
  475. then dos.command is DISKCOPY X: Y:
  476.  
  477. question diskcopy is
  478. "Create an EXACT copy of the disk in drive X: on a disk in drive Y:?    Y or N"
  479.  
  480. if disk is y
  481. and diskcomp is y
  482. then dos.command is DISKCOMP X: Y:
  483.  
  484. question diskcomp is
  485. "Compare the contents of a disk in drive X: with a disk in drive Y:?    Y or N"
  486.  
  487. if disk is y
  488. and disk.backup is y
  489. then dos.command is BACKUP X:*.* Y:                  (*? OK)
  490.  
  491. question disk.backup is
  492. "Backup entire disk in drive X: to a disk in drive Y:?                  Y or N"
  493.  
  494. if disk is y
  495. and disk.restore is y
  496. then dos.command is RESTORE Y: X:*.*                 (*? OK)
  497.  
  498. question disk.restore is
  499. "Restore backup files from a disk in drive Y: to a disk in drive X:?    Y or N"
  500.  
  501. if disk is y
  502. and chkdsk is y
  503. then dos.command is CHKDSK D: /F   (See DOS Manual For Help)
  504.  
  505. question chkdsk is
  506. "Do you want to check for and recover errors on a specified disk?       Y or N"
  507.  
  508.  
  509.  
  510.  
  511. question advanced is
  512. "Do you want to perform advanced DOS 3.1 drive/directory re-routings?   Y or N"
  513.  
  514. if advanced is y
  515. and assign is y
  516. then dos.command is ASSIGN X:=Y:   (See DOS Manual For Help)
  517.  
  518. question assign is
  519. "Do you want to route requests for drive X: to another drive called Y:? Y or N"
  520.  
  521. if advanced is y
  522. and kill.assign is y
  523. then dos.command is ASSIGN
  524.  
  525. question kill.assign is
  526. "Do you want to cancel re-routing requests from drive X: to drive Y:?   Y or N"
  527.  
  528. if advanced is y
  529. and join is y
  530. then dos.command is JOIN X: Y:\PATH    (DOS Manual For Help)
  531.  
  532. question join is
  533. "Allow drive X: to be accessed as part of drive/subdirectory Y:\PATH?   Y or N"
  534.  
  535. if advanced is y
  536. and kill.join is y
  537. then dos.command is JOIN X: /D
  538.  
  539. question kill.join is
  540. "Cancel the JOIN of drive X: to drive/subdirectory Y:\PATH?             Y or N"
  541.  
  542. if advanced is y
  543. and subst is y
  544. then dos.command is SUBST Z: Y:\PATH   (DOS Manual For Help)
  545.  
  546. question subst is
  547. "Allow subdirectory Y:\PATH to be referred to as a separate drive Z:?   Y or N"
  548.  
  549. if advanced is y
  550. and kill.subst is y
  551. then dos.command is SUBST Z: /D
  552.  
  553. question kill.subst is
  554. "Cancel SUBSTitution of drive designation Z: for subdirectory Y:\PATH?  Y or N"
  555.  
  556. if advanced is y
  557. and kill.subst is n
  558. then dos.command is NO OTHER RE-ROUTING OPTIONS LISTED
  559.  
  560.  
  561.  
  562.  
  563. question dos.itself is
  564. "Modify features or make inquiries of the DOS operating system itself?  Y or N"
  565.  
  566. if dos.itself is y
  567. and devices is y
  568. and new.console is y
  569. then dos.command is CTTY AUX
  570.  
  571. question devices is
  572. "Do you want to change how DOS interacts with devices?                  Y or N"
  573.  
  574. question new.console is
  575. "Change input/output from normal console to an auxiliary console?       Y or N"
  576.  
  577. if dos.itself is y
  578. and devices is y
  579. and old.console is y
  580. then dos.command is CTTY CON
  581.  
  582. question old.console is
  583. "Restore input/output from auxiliary console to normal console?         Y or N"
  584.  
  585.  
  586.  
  587.  
  588. if dos.itself is y
  589. and devices is y
  590. and mode is y
  591. and printer.mode is y
  592. then dos.command is MODE LPT#:[OPTIONS]     (See DOS Manual)
  593.  
  594. question mode is
  595. "Set printer, color/graphics adapter or communications adapter modes?   Y or N"
  596.  
  597. question printer.mode is
  598. "Set printer to 80-132 characters per inch or 6-8 lines per inch?       Y or N"
  599.  
  600. if dos.itself is y
  601. and devices is y
  602. and mode is y
  603. and display.adapter is y
  604. then dos.command is MODE [OPTIONS]          (See DOS Manual)
  605.  
  606. question display.adapter is
  607. "Set monitor display to 40-80 characters/line, color or black & white?  Y or N"
  608.  
  609. if dos.itself is y
  610. and devices is y
  611. and mode is y
  612. and communications is y
  613. then dos.command is MODE COM#:[OPTIONS]     (See DOS Manual)
  614.  
  615. question communications is
  616. "Set communications baud, parity, databits, and stopbits protocols?     Y or N"
  617.  
  618. if dos.itself is y
  619. and devices is y
  620. and mode is y
  621. and communications is n
  622. then dos.command is NO OTHER MODE OPTIONS LISTED
  623.  
  624. if dos.itself is y
  625. and devices is y
  626. and mode is n
  627. then dos.command is NO OTHER DEVICE CHANGING OPTIONS LISTED
  628.  
  629.  
  630.  
  631.  
  632. if dos.itself is y
  633. and clear is y
  634. then dos.command is CLS
  635.  
  636. question clear is
  637. "Do you want to clear the screen?                                       Y or N"
  638.  
  639. if dos.itself is y
  640. and version is y
  641. then dos.command is VER
  642.  
  643. question version is
  644. "Do you want to determine the version of DOS presently running?         Y or N"
  645.  
  646. if dos.itself is y
  647. and ram is y
  648. then dos.command is CHKDSK
  649.  
  650. question ram is
  651. "Do you want to determine how much memory is available?                 Y or N"
  652.  
  653. if dos.itself is y
  654. and prompt is y
  655. then dos.command is PROMPT [PROMPT-TEXT]    (SEE DOS MANUAL)
  656.  
  657. question prompt is
  658. "Do you want to change the appearance of the DOS prompt?                Y or N"
  659.  
  660. if dos.itself is y
  661. and time is y
  662. then dos.command is TIME HH:MM:SS:XX
  663.  
  664. question time is
  665. "Do you want to change the system time?                                 Y or N"
  666.  
  667. if dos.itself is y
  668. and date is y
  669. then dos.command is DATE MM-DD-YY
  670.  
  671. question date is
  672. "Do you want to change the system date?                                 Y or N"
  673.  
  674. if dos.itself is y
  675. and path is y
  676. then dos.command is PATH D:\PATH   (See DOS Manual For Help)
  677.  
  678. question path is
  679. "Do you want to instruct DOS where to search for .COM files?            Y or N"
  680.  
  681. if dos.itself is y
  682. and path is n
  683. then dos.command is NOT FOUND TRY DIFFERENT SEARCH APPROACH
  684.  
  685. if dos.itself is n
  686. then dos.command is NOT FOUND TRY DIFFERENT SEARCH APPROACH
  687.